package cn.hinglo.gameclaw.admin.dao;

import cn.hinglo.gameclaw.data.dbdao.MyMapper;
import cn.hinglo.gameclaw.user.bean.FeedBack;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

/**
 * @createTime: 2018/1/5
 * @author: HingLo
 * @description: 反馈数据接口
 */
@Repository
public interface FeedBackDao extends MyMapper<FeedBack> {
    /**
     * 标记未读取得信息未已读状态
     *
     * @param id 反馈信息的唯一ID
     * @return 修改结果
     */
    @Update("update feed_back set status=true where id=#{id} and status=false ")
    int updateFeedBackDao(@Param("id") String id);

}


